/*
* $Id: State.h 152 2010-09-23 18:28:55Z volok-aleksej@yandex.ru $
*
* Copyright 2008-2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _STATE_H_
#define _STATE_H_

#include "JournalDefined.h"

class CState
{
public:
	Journal::viewJournal m_nState;
	int m_nIdParameter;
public:
	CState()
		: m_nIdParameter(0), m_nState(Journal::EMPTY_VIEW){}
	CState(Journal::viewJournal nState, int nParam)
		: m_nIdParameter(nParam), m_nState(nState){}
	~CState(){}
};

struct State{
	Journal::tabNumber m_nPosTab;
	Journal::typeTreeItem m_nTypeSel;
	Journal::typeItemMnpl m_type;
	State(Journal::tabNumber nPos,
		Journal::typeTreeItem nTypeSel,
		Journal::typeItemMnpl type)
		: m_nPosTab(nPos), m_nTypeSel(nTypeSel), m_type(type){}
};

#endif/*_STATE_H_*/